package com.info33.platform.system.dic.entity;

import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.info33.platform.common.mvc.entity.BaseEntity;
import com.info33.platform.system.dic.vo.SysDicModVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统 - 字典 v2 模块管理
 *
 * @author nyj2one
 * @since 2022-11-30 15:15:13
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class SysDicMod extends BaseEntity {

    private static final long serialVersionUID = 904270772920925446L;

    /**
     * 父 id
     */
    @ApiModelProperty(value = "父 id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pid;

    /**
     * 模块枚举名
     */
    @ApiModelProperty(value = "模块枚举名")
    @JsonView(SysDicModVO.PcTreeByIndexes.class)
    private String modIndex;

    /**
     * 模块名称
     */
    @ApiModelProperty(value = "模块名称")
    @JsonView(SysDicModVO.PcTreeByIndexes.class)
    private String modName;

    /**
     * 逻辑删
     */
    @ApiModelProperty(value = "逻辑删")
    private Boolean deleted;

}
